package com.cskaoyan.bean.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/5 17:24
 */

@Data
public class TopicUpdateVo {
    private Integer id;
    private String title;
    private String subtitle;
    private Integer price;
    private String readCount;
    private String picUrl;
    private Integer sortOrder;
    // 在老师代码里: 返回给客户端的goods 也是一个 list;
    /**
     * 我自己的前端里客户端传递来是  "[]" ;
     */
    private List<Integer> goods;
    // private String goods; // 我返回 "[]"
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private boolean deleted;
    private String content;

}
